let config = {
    isShow: true,
    name: 'infoAddUpdata',
    labelWidth: 120,
    form: [
        { type: 'input', dataType: 'text', key: 'title', label: '标题', icon: '', disabled: false, placeholder: '请输入标题', default: '', maxlength: 100 },
        {
            type: 'select', key: 'type', label: '类型',
            option: [{ label: '通知', value: '4' }, { label: '公告', value: '5' }],
            textAlign: 'left', placeholder: '请选择类型', default: '4'
        },
        { type: 'input', dataType: 'text', key: 'releaseDept', label: '发布单位', icon: '', disabled: false, placeholder: '', default: "" },
        { type: 'slot', label: '内容描述', name: 'nrms', key: 'nrms', default: '44' },
        { type: 'slot', label: '附件', name: 'fj' }
    ],
    rules: {
        title: [
            { required: true, message: '请输入标题', trigger: 'blur' }
        ],
        releaseDept: [
            { required: true, message: '请输入发布单位', trigger: 'blur' }
        ],
        nrms: [{ required: true, message: '请输入内容', trigger: 'blur' }],
    },
    grid: {
        xl: 24,
        lg: 24,
        md: 24,
        sm: 24,
        xs: 24
    },
    event: {
        iconInput: () => {
        }
    } // 动态绑定事件
}

export { config }